package cn.itsource.org.controller;

import cn.itsource.basic.util.JsonResult;
import cn.itsource.org.domain.ProductComment;
import cn.itsource.org.mapper.ProductCommentMapper;
import cn.itsource.org.query.ProductQuery;
import cn.itsource.org.service.IProductCommentService;
import io.swagger.annotations.Api;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * department控制层
 */
@RestController
@RequestMapping("/productComment")
@Api(tags = "产品评论管理")
public class ProductCommentController {
    @Autowired
    private IProductCommentService productCommentService;
    @PostMapping("/pageList")
    public JsonResult pageList(){
        List<ProductComment> page = productCommentService.findPage();
        return JsonResult.createSuccess(page);
    }

}





